
// 引入请求方式
import { get, post, put, delete2 } from '../../util/http'

// 声明请求得接口示例
// 获取服务器时间
export const getTime = () => post('/TimeStamp')
// 获取用户列表
export const getUserList = (obj: any) => get('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/userList', obj)
// 创建用户
export const createUser = (obj: any) => post('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/user', obj)
// 更新用户
export const updateUser = (obj: any) => put('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/user', obj)
// 删除用户
export const deleteUser = (obj: any) => delete2('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/user', obj)
// 编辑类目列表
export const batchType = (obj: any) => put('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/batchType', obj)
// 类目配置列表
export const getTypeList = (obj: any) => get('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/typeList', obj)
//  获取角色列表
export const getRole = () => get('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/roleList')
// 类目配置列表
export const getMaterList = (obj: any) => get('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/materialSettingList', obj)
// 编辑类目配置
export const materialSetting = (obj: any) => post('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/operateMaterialSetting', obj)
// 操作日志
export const logList = (obj: any) => get('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/logList', obj)
//  大屏配置列表
export const getScreenSettingList = (obj: any) => get('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/screenSettingList', obj)
//  编辑大屏配置
export const operateScreenSetting = (obj: any) => post('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/operateScreenSetting', obj)
// 批量编辑大屏配置
export const batchOperateSetting = (obj: any) => post('/admin_pc/JlZW4tc2NyZWVuIiwiaWF0IjoxNzE3/batchOperateSetting', obj)
// 前台大屏配置
export const getScreenConfig = () => get('/api/screen/2NyZWIjoxNzE3VuIiwiaWF0/screenSettingList')
// 获取温度天气
export const weather = () => get('/api/screen/2NyZWIjoxNzE3VuIiwiaWF0/weather')

